﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CCRequest.aspx.cs" Inherits="WMS6.Web.Inventory.CCRequest" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>CCRequest</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newTransfer()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Transfer.aspx?from=" + escape(from);
            return false;
        }
        //弹出窗口选择货主
        function selectOwner(id) {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=' + escape(id), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;
            }

        }
        function Owner() {
            if (document.getElementById('txtOwnerEnd').value.length == 0) {
                document.getElementById('txtOwnerEnd').value = document.getElementById('txtOwnerStart').value;
            }
        }
        //弹出窗口选择货品
        function selectSku(id, ownerID) {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=' + escape(id) + '&OwnerID=' + escape(document.getElementById(ownerID).value) + '&Type=1', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {

                rtnValue = rtnValue.split('@_@');
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue[0];
                document.getElementById(ownerID).value = rtnValue[1];
            }
        }
        function Sku() {
            if (document.getElementById('txtSkuEnd').value.length == 0) {
                document.getElementById('txtSkuEnd').value = document.getElementById('txtSkuStart').value;
            }
            if (document.getElementById('txtOwnerEnd').value.length == 0) {
                document.getElementById('txtOwnerEnd').value = document.getElementById('txtOwnerStart').value;
            }
        }
        //弹出窗口选择货位
        function selectLocation(id) {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=' + escape(id.toString()), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;
            }
        }
        function Location() {
            if (document.getElementById('txtLocEnd').value.length == 0) {
                document.getElementById('txtLocEnd').value = document.getElementById('txtLocStart').value;
            }
        }
        //弹出窗口选择储区
        function selectZone(id) {
            var rtnValue = popModalWindow('../Configuration/ZoneQuery.aspx?action=' + escape(id), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;
            }
        }
        function Zone() {
            if (document.getElementById('txtZoneIDEnd').value.length == 0) {
                document.getElementById('txtZoneIDEnd').value = document.getElementById('txtZoneIDStart').value;
            }
        }
        function selectArea(id) {
            var rtnValue = popModalWindow('../Configuration/AreaQuery.aspx?action=' + escape(id), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;
                if (id != "txtAreaIDEnd") {
                    if (document.getElementById('txtAreaIDEnd').value.length == 0) {
                        document.getElementById('txtAreaIDEnd').value = rtnValue;
                    }
                }
            }
        }
        function Area() {
            if (document.getElementById('txtAreaIDEnd').value.length == 0) {
                document.getElementById('txtAreaIDEnd').value = document.getElementById('txtAreaIDStart').value;
            }
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
    </script>
</head>
<body>
    <form id="F5501" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <%--<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>--%>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblTransfer" runat="server" 
                            CssClass="label_header" Text="申请盘点" meta:resourcekey="lblTransfer"></asp:Label></td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            AccessKey="b" OnClick="btnGoBack_Click"  Enabled="false" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" OnClick="btnSave_Click" Enabled="false"  />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" Enabled="false"  />
                    </td>
                </tr>
            </table>
        </div>
        
      
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,1)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
        </div>
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;" >
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblRequestID" runat="server" CssClass="label" Text="申请编号" 
                                 meta:resourcekey="lblRequestID"></asp:Label>
                         </td>
                         <td width="180">
                              <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                  meta:resourcekey="lblStatus"></asp:Label></td>
                         <td width="180"></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtRequestID" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtRequestID" ></asp:TextBox>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" meta:resourcekey="ddlStatus">
                                    </asp:DropDownList>
                         </td>
                         <td>
                         </td>
                     </tr>    
                      <tr>
                         <td>
                          
                         </td>
                         <td>
                             
                         </td>
                         <td>
                         </td>
                     </tr>       
                        <tr>
                         <td width="180">
                             <asp:Label ID="Label1" runat="server" CssClass="label" Text="从" 
                                 meta:resourcekey="Label1"></asp:Label>
                         </td>
                         <td width="180">
                         <asp:Label ID="Label2" runat="server" CssClass="label" Text="至" 
                                 meta:resourcekey="Label2"></asp:Label> 
                         </td>
                         <td width="180"></td>               
                     </tr>
                        <tr>
                         <td>
                          
                         </td>
                         <td>
                             
                         </td>
                         <td>
                         </td>
                     </tr>
                              <tr>
                                <td width="180px">
                                    <asp:Label ID="lblOwnerStart" runat="server" CssClass="label" Text="货主代码" 
                                        meta:resourcekey="lblOwnerStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblOwnerEnd" runat="server" CssClass="label" Text="货主代码" 
                                        meta:resourcekey="lblOwnerEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtOwnerStart" runat="server" CssClass="textbox" 
                                        onblur='Owner();' meta:resourcekey="txtOwnerStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner('txtOwnerStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtOwnerEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtOwnerEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img1" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner('txtOwnerEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblSkuStart" runat="server" CssClass="label" Text="货品代码" 
                                        meta:resourcekey="lblSkuStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblSkuEnd" runat="server" CssClass="label" Text="货品代码" 
                                        meta:resourcekey="lblSkuEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtSkuStart" runat="server" CssClass="textbox" onblur='Sku();' 
                                        meta:resourcekey="txtSkuStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtSkuStart','txtOwnerStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtSkuEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtSkuEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtSkuEnd','txtOwnerEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblLocStart" runat="server" CssClass="label" Text="货位" 
                                        meta:resourcekey="lblLocStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblLocEnd" runat="server" CssClass="label" Text="货位" 
                                        meta:resourcekey="lblLocEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocStart" runat="server" CssClass="textbox" 
                                        onblur='Location();' meta:resourcekey="txtLocStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgPutawayLoc" runat="server" alt="select one item"
                                        class="img" onclick="selectLocation('txtLocStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtLocEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img2" runat="server" alt="select one item"
                                        class="img" onclick="selectLocation('txtLocEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblLocLevelStart" runat="server" CssClass="label" Text="货位层级" 
                                        meta:resourcekey="lblLocLevelStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblLocLevelEnd" runat="server" CssClass="label" Text="货位层级" 
                                        meta:resourcekey="lblLocLevelEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocLevelStart" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtLocLevelStart"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocLevelEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtLocLevelEnd"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblZoneIDStart" runat="server" CssClass="label" Text="储区" 
                                        meta:resourcekey="lblZoneIDStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblZoneIDEnd" runat="server" CssClass="label" Text="储区" 
                                        meta:resourcekey="lblZoneIDEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtZoneIDStart" runat="server" CssClass="textbox" 
                                        onblur='Zone();' meta:resourcekey="txtZoneIDStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgZoneID" runat="server" alt="select one item"
                                        class="img" onclick="selectZone('txtZoneIDStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtZoneIDEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtZoneIDEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img3" runat="server" alt="select one item"
                                        class="img" onclick="selectZone('txtZoneIDEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblAreaIDStart" runat="server" CssClass="label" Text="区域" 
                                        meta:resourcekey="lblAreaIDStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblAreaIDEnd" runat="server" CssClass="label" Text="区域" 
                                        meta:resourcekey="lblAreaIDEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtAreaIDStart" runat="server" CssClass="textbox" 
                                        onblur='Area();' meta:resourcekey="txtAreaIDStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img4" runat="server" alt="select one item"
                                        class="img" onclick="selectArea('txtAreaIDStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtAreaIDEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtAreaIDEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img5" runat="server" alt="select one item"
                                        class="img" onclick="selectArea('txtAreaIDEnd');" />
                                </td>
                            </tr>
                     <tr style="height:10px;">
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                 </table>
             </div>             
     
         </div>
           <input type="hidden" id="hdnPrID" runat="server" />      
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnFlag" runat="server" />
        <%--</ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />  
        </Triggers>
        </asp:UpdatePanel>--%>
    </div>
    </form>
</body>
</html>
